package ml.tewas.commondata;

public class BoardCell {

	private int cellXPosition;

	private int cellYPosition;

	public BoardCell(BoardCell boardCell) {
		super();
		this.cellXPosition = boardCell.getCellXPosition();
		this.cellYPosition = boardCell.getCellYPosition();	
	}
	public BoardCell(int cellXPosition, int cellYPosition) {
		super();
		this.cellXPosition = cellXPosition;
		this.cellYPosition = cellYPosition;
	}

	public int getCellXPosition() {
		return cellXPosition;
	}

	public void setCellXPosition(int cellXPosition) {
		this.cellXPosition = cellXPosition;
	}

	public int getCellYPosition() {
		return cellYPosition;
	}

	public void setCellYPosition(int cellYPosition) {
		this.cellYPosition = cellYPosition;
	}
	
	public boolean isEqual(BoardCell position){
		
		return cellXPosition == position.getCellXPosition() && cellYPosition == position.getCellYPosition();
	}
	
}
